home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
demo
/
rotplnnr.lha
/
mui.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-11
|
552b
|
30 lines
void __regargs __autoopenfail(char *);
#include <constructor.h>
#include <proto/exec.h>
#include <proto/muimaster.h>
struct Library *MUIMasterBase;
static void *libbase;
extern long __oslibversion;
CBMLIB_CONSTRUCTOR(openmui)
{
libbase=MUIMasterBase=(void *)OpenLibrary("muimaster.library",8);
if(MUIMasterBase == NULL)
{
__autoopenfail("muimaster.library");
return 1;
}
return 0;
}
CBMLIB_DESTRUCTOR(closemui)
{
if(libbase)
{
CloseLibrary((struct Library *)libbase);
libbase=MUIMasterBase=NULL;
}
}